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 give input values at the runtime in PLI programs?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
hemajuluri

New User


Joined: 28 Apr 2008
Posts: 1
Location: Hyderabad

PostPosted: Mon Oct 13, 2008 4:05 pm    Post subject: How to give input values at the runtime in PLI programs?
Reply with quote

Hi,

how to give input values at the run time in PLI programs for the variables declared. Suppose, I have a program when I run my program it should ask for choice at the run time acc. to that it should perform particular logic related to that choice. How can I get this? Is it possible through PLI programs.

Thanks in Advance,
Hema
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Mon Oct 13, 2008 5:08 pm    Post subject:
Reply with quote

Have you looked at the manual:
Quote:
The GET statement is a STREAM input data transmission statement that can either:

* Assign data values from a data set to one or more variables
* Assign data values from a string to one or more variables.

For a stream input file, use the following syntax for the GET statement.


________________________________________________________________________
| |
| >>__GET__ ____________________ ___ ____________________ _____________> |
| |_FILE__(expression)_| |_data-specification_| |
| |
| >__ ____________________________ __ ________________________ __;____>< |
| |_COPY__ __________________ _| |_SKIP__ ______________ _| |
| |_(file-reference)_| |_(expression)_| |
| |
|________________________________________________________________________|
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


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