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
 

 

Accepting input data from JCL

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

New User


Joined: 24 Aug 2007
Posts: 12
Location: Hyderabad

PostPosted: Wed Aug 12, 2009 10:12 pm    Post subject: Accepting input data from JCL
Reply with quote

How do yo u accept input data from JCL in PLI ? what extra code we need to put like in cobol we give Linkage Section and Procedure Division with variables etc.
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Wed Aug 12, 2009 11:14 pm    Post subject:
Reply with quote

Code:
myproc: proc(parm) options(main);
dcl parm char (100) var;
.
.
.
end myproc;


Code:
//STEPPLI EXEC PGM=MYPGM,PARM='/PARAMETERS'


Before the slash you can put parameters for the run-time.

FWIW, everything is in the manual, why did you not read it???
Back to top
View user's profile Send private message
sai.dara

New User


Joined: 24 Aug 2007
Posts: 12
Location: Hyderabad

PostPosted: Fri Aug 21, 2009 12:39 am    Post subject: Reg: passing parameters through JCL
Reply with quote

Thank You Prino.

I have a query, in the above PLI program you have declare the variable name as "parm"

dcl parm char (100) var;

as we are passing data from PARM parameter of JCL, is it mandatory to declare the name as PARM of can I give a different name.

One more thing if we are passing data from SYSIN, what name should we give to the variable that accepts the input.

//SYSIN DD *
this is input
/*
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Fri Aug 21, 2009 12:53 am    Post subject:
Reply with quote

"Oh crap", as Joy Turner would say...
Code:
dcl volume area;
dcl integer float;
dcl float char;

if if = then then then = else;else else = if;


How much trouble would it have been to try this:
Code:
myproc: proc(I_am_a_dimwit) options(main);
dcl I_am_a_dimwit char (100) var;
.
.
.
end myproc;

As for SYSIN? You can treat it as a normal file, or you can treat it as SYSIN. Either way, RTFM!
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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm


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