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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can the lengh field in PARM parameter be given in any order
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    Post subject: Re: Can the lengh field in PARM parameter be given in any or
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    Post subject:
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    Post subject: Re: Can the lengh field in PARM parameter be given in any or
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    Post subject:
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    Post subject: Hai am Pongnanavel!
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    Post subject: Re: Can the lengh field in PARM parameter be given in any or
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am


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