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
 

 

Inputting data in run jcl when we are using GETDATA in pl/1

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

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Tue Oct 25, 2005 12:47 pm    Post subject: Inputting data in run jcl when we are using GETDATA in pl/1
Reply with quote

hi,
how can we give input data in run jcl when we are using getdata in
pl/1 program?
Back to top
View user's profile Send private message

Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Tue Oct 25, 2005 6:37 pm    Post subject:
Reply with quote

If your run jcl is passing values to your PL/1 variables ,say NAME,AGE,RANK and REMARKS,then the input for getdata is like...
NAME='ARUN', AGE=5, RANK=1, REMARKS='VERY GOOD';
Let us know,if you are looking for more.
Regards,
Sridevi.
Back to top
View user's profile Send private message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Thu Oct 27, 2005 10:36 am    Post subject: Re: Inputting data in run jcl when we are using GETDATA in p
Reply with quote

thanks for u r reply sridevi.i am very new to pl/1.i am getting soc4 for this
simple program plz check it.
HAI:PROC OPTIONS(MAIN);
DCL AGE FIXED DEC(2);
DCL NAME CHAR(9);
DCL RANK CHAR(1);
GET DATA;
END;
this my program.i am sending my run jcl also plz check it.
//MTPLP07P JOB NOTIFY=&SYSUID,LINES=(1,CANCEL)
//STEP EXEC PGM=NEW
//STEPLIB DD DSN=MTPLP07.VENKI.LOADLIB,DISP=SHR --> LOAD LIB
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
AGE=23,NAME='VENKATESH',RANK='1';
i hope u will give reply.& give me good reference book for pl/1.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 27, 2005 6:50 pm    Post subject:
Reply with quote

Your pgm should end with END HAI; and the run jcl should end with /*. Try giving blank space after comma in the input stream(I have used 'b' to indicate blank)....AGE=23,bNAME='VENKATESH',bRANK='1';
Hope this helps. PL/I manual is available in this website. Reference book is Joan K Hughes.
Regards,
Sridevi
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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