IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can the lengh field in PARM parameter be given in any order


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DeepthiSuresh

New User


Joined: 06 Jul 2005
Posts: 1

PostPosted: Wed Jul 06, 2005 4:57 pm
Reply with quote

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
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Wed Jul 06, 2005 9:07 pm
Reply with quote

Hi,

you cannot do that...
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Mon Aug 08, 2005 12:20 pm
Reply with quote

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 icon_evil.gif
Back to top
View user's profile Send private message
rolen
Warnings : 1

New User


Joined: 26 Mar 2005
Posts: 6

PostPosted: Tue Oct 04, 2005 5:05 pm
Reply with quote

If u try to Specify the text prior to length parameter, it will yield in SOC 7 error. Try this if u want to. icon_biggrin.gif icon_smile.gif
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Mon Jun 05, 2006 11:30 am
Reply with quote

It is like any other variable length field which will have its length declared first followed by the value.
Back to top
View user's profile Send private message
pongnanavel
Currently Banned

New User


Joined: 28 Jun 2006
Posts: 3
Location: chennai

PostPosted: Wed Jun 28, 2006 9:48 pm
Reply with quote

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
View user's profile Send private message
jaiveer yadav

New User


Joined: 02 Sep 2006
Posts: 1

PostPosted: Tue Sep 12, 2006 1:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Rotate partition-logical & physic... DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top