View previous topic :: View next topic
|
Author |
Message |
DeepthiSuresh
New User
Joined: 06 Jul 2005 Posts: 1
|
|
|
|
Below is linkage section.
LINKAGE SECTION.
01 PARM.
05 PLENGTH PIC S9(04) COMP.
05 INFO PIC X(05).
Can this be interchanged as
LINKAGE SECTION.
01 PARM.
05 INFO PIC X(05).
05 PLENGTH PIC S9(04) COMP.
If yes will both provide same out put |
|
Back to top |
|
|
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 160 Location: Toronto, Canada
|
|
|
|
Hi,
you cannot do that... |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
you cannot code like that
if the length parameter is not given it will take 2bytes from the field and u have 2 suplly additional 2 length byte 2 accomdate that in the parm |
|
Back to top |
|
|
rolen Warnings : 1 New User
Joined: 26 Mar 2005 Posts: 6
|
|
|
|
If u try to Specify the text prior to length parameter, it will yield in SOC 7 error. Try this if u want to. |
|
Back to top |
|
|
prasadvrk
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
It is like any other variable length field which will have its length declared first followed by the value. |
|
Back to top |
|
|
pongnanavel Currently Banned New User
Joined: 28 Jun 2006 Posts: 3 Location: chennai
|
|
|
|
YES U CAN'T CODE LIKE THAT. THE PASSING VALUES ARE BYTE TRANSFER ONLY. IT NOT CHECKING THE NAME AND TYPE. SO PLS GIVE THE CORRECT FORMAT OF SENDING AS SAME AS RECEIVING... |
|
Back to top |
|
|
jaiveer yadav
New User
Joined: 02 Sep 2006 Posts: 1
|
|
|
|
DeepthiSuresh wrote: |
Below is linkage section.
LINKAGE SECTION.
01 PARM.
05 PLENGTH PIC S9(04) COMP.
05 INFO PIC X(05).
Can this be interchanged as
LINKAGE SECTION.
01 PARM.
05 INFO PIC X(05).
05 PLENGTH PIC S9(04) COMP.
If yes will both provide same out put |
No u cant do tht it may take junk value |
|
Back to top |
|
|
|