Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Interactive form/report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Interactive form/report
 Login/Join
 
Silver Member
posted
Hi,

I using two forms (-crtform) one as input and another output. The input data will be comapred in a table command and corresponding record will be ftched from a file. This query will fetch only one record and the data should be displayed in the other form. But when I am running my code, the output values are not displayed, instead the varialble names are displayed.
I am attaching the code and the screen shots also.

Any help to resolve this problem would be appreciated.


Thanks

focus on mainframe client
Windows
Excel
 
Posts: 33 | Registered: December 14, 2007Report This Post
Silver Member
posted Hide Post
Actually I could not attach the files. Here is the code:
DYNAM ALLOC FILE STUDENT DA AACAP25.STUD.STUDENT.DATA SHR REUSE
DEFINE FILE STUDENT
TOTAL_MARKS/D5=MARK_1+MARK_2+MARK_3;
PERC/D5.2S=TOTAL_MARKS/3.0;
END
-RUN
-START
-SET &STUD_ID=' ';
-SET &F_NAME=' ';
-SET &L_NAME=' ';
-SET &DEPT=' ';
-SET &MARK_1=' ';
-SET &MARK_2=' ';
-SET &MARK_3=' ';
-SET &TOTAL_MARKS=' ';
-SET &PERC=' ';
-SET &PFKEY=' ';
-SET &ERRMSG=' ';
-FORM_1
-RUN
-CRTFORM TYPE 1 LINE 1
-" SAMPLE DATA ENTRY PANEL "
-" "
-" "
-" "
-" "
-"<5><.Y. ENTER THE STUDENT ID: <.IBT.&STUD_ID "
-"<.P. "
-" "
-" "
-"<.R. <10 PF3=END ENTER=PROCESS "
-" "
-"<.YD.&ERRMSG/50>"
-************VERIFY APPROPRIATE KEY AND DATA ENTERED
-IF &PFKEY EQ 'PF03' GOTO THEEND;
-IF &STUD_ID EQ ' ' GOTO NO_DATA;
-IF &PFKEY EQ 'ENTR' GOTO DO_RPT;
-SET &ERRMSG='PLEASE USE PF3 OR THE ENTER KEY';
-GOTO FORM_1;
-NO_DATA
-SET &ERRMSG='PLEASE ENTER A STUDENT ID';
-GOTO FORM_1
-DO_RPT
-SET &ERRMSG=' ';
TABLE FILE STUDENT
PRINT *
WHERE STUD_ID EQ &STUD_ID
END
SET STUD_ID=&STUD_ID;
SET F_NAME=&F_NAME;
SET &L_NAME=L_NAME;
SET &DEPT=DEPT;
SET &MARK_1=MARK_1;
SET &MARK_2=MARK_2;
SET &MARK_3=MARK_3;
SET &TOTAL_MARKS=TOTAL_MARKS;
SET &PERC=PERC;
-CRTFORM TYPE 1 LINE 1
-" OUTPUT PANEL "
-" "
-" "
-" "
-"<5><.Y. STUDENT ID : <.R. &STUD_ID "
-"<5><.Y. STUDENT NAME : <.R. &F_NAME><.R. &L_NAME> "
-"<5><.Y. DEPARTMENT: <.R. &DEPT> "
-"<5><.Y. MARKS IN COBOL: <.R. &MARK_1> "
-"<5><.Y. MARKS IN DB2 : <.R. &MARK_2> "
-"<5><.Y. MARKS IN FOCUS: <.R. &MARK_3> "
-" "
-"<5><.Y. TOTAL MARKS IN MAINFRAMES <.R. &TOTAL_MARKS> "
-" "
-"<5><.Y. PERCENTAGE : <.R. PERC>% "
-"<.P. "
-" "
-" "
-"<.R. <10 PF4=BACK "
-" "
-"<.YD.&ERRMSG/50>"
-IF &PFKEY EQ 'PF04' GOTO START;
-THEEND
END
-RUN


Thanks

focus on mainframe client
Windows
Excel
 
Posts: 33 | Registered: December 14, 2007Report This Post
Expert
posted Hide Post
As far as I can tell, none of these commands are valid:

SET STUD_ID=&STUD_ID;
SET F_NAME=&F_NAME;
SET &L_NAME=L_NAME;
SET &DEPT=DEPT;
SET &MARK_1=MARK_1;
SET &MARK_2=MARK_2;
SET &MARK_3=MARK_3;
SET &TOTAL_MARKS=TOTAL_MARKS;
SET &PERC=PERC;


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Do an ON TABLE SAVE in your TABLE request. Then do a -READ SAVE to populate your amper variables.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Interactive form/report

Copyright © 1996-2020 Information Builders