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
 
how to see the variable values in the called program??

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

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jun 26, 2007 4:24 pm    Post subject: how to see the variable values in the called program??
Reply with quote

Hi,
I am having a program which is being called by another program . A part of the linkage section is pasted here.
_________________________________________________
LINKAGE SECTION.

01 WL-001-REPORT-FUNCTION
VALUE space PICX.

COPY WA999950.

01 WL-003-HOLD-CYCLE-DATES.
05 WL-003-CYCLE-DATE-MMDDYY
PIC 9(06).
05 WL-003-CYCLE-DATE-PRINT PIC X(10).
05 WL-003-PROCESSING-DATE PIC X(10).
05 WL-003-PROCESSING-TIME PIC X(08).
___________________________________________________
I already have the output from the calling program, in a data set.
how do i map those values see the data in the format shown in the linkage section?

I have heard of file aid option but can i use it to view in the format specified in the linkage section??????
Back to top
View user's profile Send private message

sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Tue Jun 26, 2007 4:35 pm    Post subject:
Reply with quote

Hi

If i got ur requirement right
1> u already have linkage data from calling program in a dataset??
2> no u want to map the dataset generated in step 1
then waht u can do is first copy all ur linkage
and make a new copy book with decalartion

01 WL-001-REPORT-FUNCTION
VALUE space PICX.

COPY WA999950.

01 WL-003-HOLD-CYCLE-DATES.
05 WL-003-CYCLE-DATE-MMDDYY
PIC 9(06).
05 WL-003-CYCLE-DATE-PRINT PIC X(10).
05 WL-003-PROCESSING-DATE PIC X(10).
05 WL-003-PROCESSING-TIME PIC X(08).

==> say copybook-1

now map ur dataset of step 1 with the coopy book copybook-1

Please let me know if i got u right if so do u need any more on this

Sandeep
Back to top
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jun 26, 2007 5:29 pm    Post subject:
Reply with quote

Hi sandeep1dimri ,

I made the copybook and used file aid to view the values , but it says the copybook is not cataloged!!!! do i need to do something else too after creating the copybook and then use file aid??

BTW thanks for the earlier reply icon_razz.gif .

ratheesh.
Back to top
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Tue Jun 26, 2007 6:23 pm    Post subject:
Reply with quote

hey just check the file aid setting and also check it whether u hve save ur copy book icon_smile.gif

i hope ur using batch option 1

if u r still facing some problem pls let me know

sandeep
Back to top
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jun 26, 2007 8:09 pm    Post subject:
Reply with quote

Hi,

I am getting like "error in line 35'. What cud be the possible cause of this sandeep? Is it a problem with the data or the layout??
BTW i have already replaced the "COPY WA999950. " statemnt in the layout with the content of the copybook WA999950 .

icon_surprised.gif
regards,
ratheesh
Back to top
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Thu Jun 28, 2007 9:07 am    Post subject:
Reply with quote

Hi

it may be syntax error at that line(line 35)while declaring the data variable .

plse post that line so that we can suggest on that.


sandeep
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Thu Jun 28, 2007 10:29 pm    Post subject:
Reply with quote

Quote:
01 WL-001-REPORT-FUNCTION
VALUE space PICX.

Shouldn't the value clause come after the picture clause?
Also there should be a space betn PIC and X.
You have to be sure about your layout if linkage section contains multiple 01 level variables. Make adjustments accordingly.
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am

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