View previous topic :: View next topic
|
Author |
Message |
shivsingla Warnings : 1 New User
Joined: 14 Jul 2006 Posts: 15 Location: New Delhi
|
|
|
|
hi all,
i have write,
GET DATA(A,B,C);
how to pass values in these varibales through sysin dd *
thanx in advance |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Declare sysin as a file; open it input; read into a record which has a structure based at it; finally close it.[/code] |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
or.........read the fine manual and find all about GET like this |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
I think GET DATA reads input like a stream, not records with structure. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Phrzby Phil wrote: |
I think GET DATA reads input like a stream, not records with structure. |
Still......based(addr) |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Less cryptically please? I've done over 16 years' PL/I, but not since 1995, so my gaps are widening. |
|
Back to top |
|
|
k_vikram07
New User
Joined: 23 Nov 2005 Posts: 35
|
|
|
|
Hi.
Assign the values in SYSIN as a PL/1 assignment statements
eg: In SYSIN...
A='adbcd';
B=9;
C=23.21;
Hope u recollect!!
Bye
Vik. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Oh, I do remember this part - that's the beauty of the GET DATA.
What I don't understand is Bitneuker's comment: "Still......based(addr)" |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Compared to COBOL somthing like REDEFINE. Overlay a structure based at the address of the string. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
I don't know why one would want to do this with GET DATA input. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
The issue is that the stringstament GET is supposed to be stored in three different items. GET = streaming............ |
|
Back to top |
|
|
|