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
 

 

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: 685
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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